import oracledb

print("是否为 Thin 模式：", oracledb.is_thin_mode())

# conn = oracledb.connect(user="sys", password="jschrj", dsn="192.168.1.253:1521/jschrjpdb1", mode=oracledb.SYSDBA)
# conn = oracledb.connect(user="sys", password="jschrj", dsn="192.168.1.223:1521/orcl", mode=oracledb.SYSDBA)
print("连接成功，数据库版本：", conn.version)

conn.close()
